module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: '今夜头条',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: 'egg example website' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },
  /*
  ** Customize the progress bar color
  */
  loading: { color: '#3B8070' },
  /*
  ** Build configuration
  */
  build: {
    /*
    ** Run ESLint on save
    */
    extend (config, { isDev, isClient }) {
      if (isDev && isClient) {
        config.module.rules.push({
          enforce: 'pre',
          test: /\.(js|vue)$/,
          loader: 'eslint-loader',
          exclude: /(node_modules)/
        })
      }
    },
    /**
     * vendor
     */
    vendor: ['axios']
  },
  /**
   * css
   */
  css: [
    { src: 'iview/dist/styles/iview.css', lang: 'css'},
    { src: '~/scss/style.scss', lang: 'scss' }
  ],
  /**
   * plugins
   */
  plugins: ['~/plugins/iview', '~/plugins/xss-filter'],

  /**
   * generate
   */
  generate: {
    routes: [
      '/article/55',
      '/article/56',
      '/article/57',
      '/article/58',
      '/article/54',
      '/article/51',
      '/article/52',
      '/article/53',
      '/article/47',
      '/article/48',
      '/article/49',
      '/article/50',
      '/article/44',
      '/article/45',
      '/article/46',
      '/article/40',
      '/article/41',
      '/article/42',
      '/article/43',
      '/article/37',
      '/article/38',
      '/article/39',
      '/article/33',
      '/article/34',
      '/article/35',
      '/article/36',
      '/article/15',
      '/article/14',
      '/article/2',
      '/channel/1',
      '/channel/2',
      '/channel/4',
      '/channel/5',
      '/channel/6',
      '/channel/7',
      '/channel/8',
      '/channel/9',
      '/channel/10',
      '/channel/11',

    ]
  }
}
